package org.dashboard.service;


import com.github.pagehelper.PageInfo;
import org.dashboard.bean.AdUser;

import java.util.ArrayList;

public interface AdUserService {
    int deleteByPrimaryKey(Integer userId);

    int insert(AdUser record);

    int insertSelective(AdUser record);

    AdUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(AdUser record);

    int updateByPrimaryKey(AdUser record);


    int checkUserNameExist(String userName,Integer userId);

    boolean deleteByPrimaryKeys(ArrayList<Integer> userIds);

    AdUser selectByName(String userName);

    PageInfo selectAdUsersPaged(String criteria, Integer pageNum, Integer pageSize);
}
